home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 8 / QRZ Ham Radio Callsign Database - Volume 8.iso / pc / files / sat / msat09.tgz / HEADER.H < prev    next >
Text File  |  1994-09-17  |  2KB  |  59 lines

  1. /*
  2.     hdr.h
  3.  
  4.     Extract FTL0 header from a file
  5.  
  6.  
  7.     John Melton
  8.     G0ORX, N6LYT
  9.  
  10.     4 Charlwoods Close
  11.     Copthorne
  12.     West Sussex
  13.     RH10 3QZ
  14.     England
  15.  
  16.     INTERNET:    g0orx@amsat.org
  17.             n6lyt@amsat.org
  18.             john@images.demon.co.uk
  19.             J.D.Melton@slh0613.icl.wins.co.uk
  20. */
  21.  
  22. typedef struct
  23. {
  24.   /* required Header Information */
  25.   unsigned long fileId;              /* 0x01 */
  26.   char          fileName[9];         /* 0x02 */
  27.   char          fileExt[4];          /* 0x03 */
  28.   unsigned long fileSize;            /* 0x04 */
  29.   unsigned long createTime;          /* 0x05 */
  30.   unsigned long modifiedTime;        /* 0x06 */
  31.   unsigned char SEUflag;             /* 0x07 */
  32.   unsigned char fileType;            /* 0x08 */
  33.   unsigned int  bodyCRC;             /* 0x09 */
  34.   unsigned int  headerCRC;           /* 0x0A */
  35.   unsigned int  bodyOffset;          /* 0x0B */
  36.  
  37.   /* Extended Header Information */
  38.   char          source[33];          /* 0x10 */
  39.   char          uploader[7];         /* 0x11 */
  40.   unsigned long uploadTime;          /* 0x12 */
  41.   unsigned char downloadCount;       /* 0x13 */
  42.   char          destination[33];     /* 0x14 */
  43.   char          downloader[7];       /* 0x15 */
  44.   unsigned long downloadTime;        /* 0x16 */
  45.   unsigned long expireTime;          /* 0x17 */
  46.   unsigned char priority;            /* 0x18 */
  47.   unsigned char compression;         /* 0x19 */
  48.   char          BBSMessageType;      /* 0x20 */
  49.   char          BID[33];             /* 0x21 */
  50.   char          title[65];           /* 0x22 */
  51.   char          keyWords[33];        /* 0x23 */
  52.   char          description[33];     /* 0x24 */
  53.   char          compressionDesc[33]; /* 0x25 */
  54.   char          userFileName[33];    /* 0x26 */
  55. }
  56. HEADER;
  57.  
  58. HEADER *ExtractHeader(unsigned char *buffer, int nBytes, int *size);
  59.